/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.pac4.comun;

import edu.uoc.tdp.pac4.i18n.TDSLanguageUtils;
import javax.swing.JOptionPane;

/**
 *
 * @author Nurele
 */
public class PAC4Exception extends Exception {

    public static final String EXCEPCION_INESPERADA = TDSLanguageUtils.getMessage("EXCEPCION_INESPERADA");
    
    /**
     * Creates a new instance of
     * <code>PAC3Exception</code> without detail message.
     */
    public PAC4Exception() {
        JOptionPane.showMessageDialog(null, EXCEPCION_INESPERADA, "Error", 0);
    }

    /**
     * Constructs an instance of
     * <code>PAC3Exception</code> with the specified detail message.
     *
     * @param msg the detail message.
     */
    public PAC4Exception(String msg) {
        JOptionPane.showMessageDialog(null, msg, "Error", 0);
    }
}

